package com.itheima.tliasmanager.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 封装阿里云OSS所有配置参数
 */
@Data
@Component // IOC容器管理
@ConfigurationProperties(prefix = "aliyun.oss") //一次从application.yml文件中读取一批以aliyun.oss开头的属性值
public class AliOSSProperties {
    private String endpoint;
    private String bucketName;
    private String region;
}
